﻿function btnsave()
{
$('Sagree').style.display="none";
$('StxtCommInput').style.display="none";
var txtCommInput=$('txtCommInput').value;
if(!$('agree').checked||txtCommInput.length>3799){if(!$('agree').checked){$('Sagree').style.display="";}if(txtCommInput.length>3799){$('StxtCommInput').style.display="";}return;}
  showProgressBar(true);
  $get("btnCommInput").disabled=true;
  WebServices.User.Teach.SetSesState5(sid,memberno,txtCommInput,onners)
}
function onners(re)
{  
    if(re)
    {
       showProgressBar(false);
       top.location='/session/session.htm?sid='+re;
        
    }
}
